package cn.yuanqiao.archive.wenjianzhengli.service;

import cn.yuanqiao.archive.wenjianzhengli.utils.UploadDAO;
import com.alibaba.fastjson2.JSONObject;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author zjj
 * @date 2023/6/30
 */
public interface IDaImportService {

    /**
     * 获取表头
     * @param categoryId
     * @param type
     * @param file
     * @return
     * @throws Exception
     */
    UploadDAO getTitle(Long categoryId, Integer type, MultipartFile file) throws Exception;

    /**
     * 导入数据
     * @param file
     * @return
     * @throws Exception
     */
    UploadDAO upload(JSONObject data, MultipartFile file)throws Exception;

    String uploadXml(Long id,String type, MultipartFile file);

    String uploadTxt(Long id, String type, MultipartFile file,String fileType);
}
